home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10916 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1011 b 

  1. Path: nntp1.best.com!usenet
  2. From: DrLaz@aol.com
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: Best way to resume from an exception
  5. Date: Mon, 11 Mar 1996 18:14:16 GMT
  6. Organization: Best Internet Communications
  7. Message-ID: <4i1qr9$g15@nntp1.best.com>
  8. Reply-To: DrLaz@aol.com
  9. NNTP-Posting-Host: advisor.vip.best.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. OK, wizards, what do you-all think is the best way to pick up after an
  13. exception from the point at which it was thrown? For example--
  14.  
  15. try{
  16.     // code that does a lot of 'new', much of it in MSVC library code
  17.     //  (so I can't check every new myself)
  18. }
  19. catch(CMemoryException* e){
  20.     // delete some purgeable stuff that can be re-fetched later
  21.     // oops, now what!
  22. }
  23. I could even try a 'goto' to the try block, since I in this case the
  24. variables are initialized before the try, but I' sure someone has
  25. thought about this deeply.
  26.  
  27. (Doesn't Object Pascal simply have a 'resume' keyword?)
  28.  
  29. andy
  30.  
  31. (e-mail copies of any reply appreciated)
  32.  
  33.